import DB.DBConnection;
import controller.IndexServlet;
import entity.Book;
import repository.BookRepository;
import repository.impl.BookRepositoryImpl;
import tool.VerificationCode;

import javax.xml.ws.Service;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class Main {
    public static void main(String [] args) throws SQLException, ClassNotFoundException {

        Connection connection=DBConnection.getDB();
        System.out.println("数据库连接成功");
       // IndexServlet c=new IndexServlet();
        BookRepository bookRepository=new BookRepositoryImpl();
        System.out.println(bookRepository);



       // System.out.println(c);

    }
}
